Fix glaring issues with MemoryRegion (still untested)