Added flag for turning off debugging.