Adds the ability to set the sleep delay.

By default it is 1, which is 1/10th second.