[WIP] Recording and playback

Still a work in progress...