Record and Replay Framework