Updated memory, implemented memory handling in interpreter.