Using cost from paper (gets nans)