sleep(used) instead of while loop. Performance increased :)