Added a debug method