Added function definition for finding start and end times of all channels