Working propensity matching code