Implemented Pause and Replay functionality.