Use logging instead of console.