Added a debug mode configuration option