Was meant to use endTime2

instead of endTime