Implemented category changing.