Remove unused variable.
Add ability to make a category selectable only by team members.
Fix bug where changing categories does not take effect.