Adding in some logging for category stuff.