Memory layout improvements
Fully functional setValue in Memory