Added some mmap functionality