Added debug() method