Modified to MMapDirectory