Redesign of debug and error messages