Switching internal loop to float