Added error messages.