Added some debug methods