Cosmetic fixes
- rearranged sleep_mode() calls to look better.