Added some console logging