Change category to an enum