Added a few debug messages