GH81: Implement helper for custom messages.

Fixed comments after review.