Reordered routes code