Add route adding function.