Seperate memory mapping functionality so it can be selectively changed.