Adapted to Magnum changes (own type aliases).