Added SetStartTime and SetEndTime.