Add console.log messages for debug