Cleaning up function in REPL.