Added debug method.