Refactored passing categories to scope
Raw version of saving plugin's categories