Implemented categorize feature.