[bal] Added mmap handling code.