Updated console.log to global.log to preserve shell