Sleep time works. Change the main loop run time to go from 0-50 and not 0-49.