Implement most sleep commands.