Added router FSM functionality

Added router FSM functionality