New code for Case 1: Nonparametric, from Cstar.