Removed sleep and set a time lock instead