Adding console.log for debugging purpose