Adding replay functionality. (press r)