Made some of the threads sleep for a shorter period of time when not doing anything.