[Fix #79] Replace Breakable For Loops By While Loops