Fix sleep and return ability to not run rest/web