Add debug method