Added some debug outputs