Added record functionality in middle of emulation