Modified web app to add sleep