Prepare routing.