Worked on sleep and prepare methods