Added read_ehists function.