Added option to read boolMap from file.