Add pry
Fix schedule factory failing at the end of the day