Added REPLAY functionality