Removing dependency on console.