Shifted all memory locations to MemoryLocations enumeration.