Add a debug option to control debug outputs