Tried a different approach to path computation.