Added a function that returns a list of end times of the phases.