More magnetic field history code