Add configurability for debug messages