@catsalad add break in the loop to stop the execution.