Update code for timeslot