Added debug method