Add appropriate error messages.