Adapted to Magnum changes.