Add more processing of types and segment.
Process routes