Added some console logs