Added object to calculate total distance traveled and time elapsed