Added a copy functionality for categories.