Used mmap instead of fd