Added MessageCategory enum. Added EnumExtensions.