Make better use of console.* API