Support for new recording
Save and restore all variables