Implemented some path processing.