Bugfix: Substitute the hardcoded Integral and Max values of the magnetic field