Rework the relay control to a combinable function which does not block for 10ms.