Implement custom messages in decorators.

Related to issue #193.