Adding some console logging