startTime and endTime are now correctly logged to the console