Removed function to group by categories.