Save distance and elapsed time

Not tested outside...