Adding console log debug