Added possibility for inactive, hidden categories, closes #646