Why are you removing the checks in this function and in ```read_mapping_file```?