Router data structure question