Add interface for custom relation match.