Changed default to write to console.