Fixed variable name bug in Router
Added router merging