Framework code for router management