Add console.log to debug message passing