Added for loop to iterate through timeslots