Added updating of categories.