Refactored out record and replay from time manipulation class.