Add a debugging mode