First version with mmap working, although it doesn't work