Added pathname processing.