Adding error messages.