Renamed totalTime to startTime