Improve formatting of RIM with relations[]
Improve RIM formatting.