Added debug output support.