The variable max_loops is set as default by 5000. You can make it higher for more passes in the whileloop without a wait.