Added error message output.