Added pre-read before trying to read memory map. I have no idea what it acutally does!