More efficient and readable Record/Playback loops