Fixed bug in memory system. Console output now as expected.