2 ms·Sounds like a state machine implementation might work. Hard to say in the abstract.by simonh 8y agoSounds like a state machine implementation might work. Hard to say in the abstract.