Adding console logging