Split rules and add messages.