Got rid of some unused variables in Read and ReadMappingInfo