ENH: Implemented debug switch