Added filtering of debug messages