Support for custom messages for contracts