Snatch before for loop in main function
Snatch while loop on main function