Adapted to Magnum changes.

Oh boy.