Adds working functionality for categories.