Attach category to data