Added parameter to getAllCategories to exclude specific categories.