added independent duration for each leg.