Before starting mmap