moving code around, and added 'usedMemory'