Added definition for behaviors.
Added a default error message when there isn't any errors.