Cleaning up interfaces a bit, implementing sleep.