Persist stack state in REPL.