Recode SerRouter function