Improvements on timetraveling example.