Add MagicObject and MagicObjectManager.