Added some debug helper methods