Added write to console.log