Add console.log to check logic