Fix problems with severity level. Implement custom severity levels.