Code

Merge pull request #1770 from swt2c/smart_ignore_sleep