Implemented save/load to internal memory functionality