Changed to not use console.log