I guess doubling the circuit and using a resistor just like the stock one uses could work.
But the best would be redesign it from scratch and use a programable microcontroller with few inputs and outputs.
But I'm not going to spend more time with that.