Added error output to console.