Route assignment made thread safe