Make trim configurable and only trim relays