Implement sleep with range.

Closes #204.
Implement sleep with range.

Closes #204.