Memory thread runMemory() not working