Implemented ProceduralMemory (not tested yet).