Added the categories accessor, and initialised it.