Added debug() for adding debug messages