Almost done with cvx version