Added some debug serial prints