Added a class to get debug messages