Added error console output.