Now doing a smarter updateCategories