Switched savePositions() to use the reference to the clock instead of the name.