Ramp up and down the magnet