Updated Main and PMF for paths