Reorganized and made a break in the loop.