Add console.log for debugging.