Adapted to Magnum changes.

Removed redundant checks, hidden implementation to class privates.