Router state machine and logic update