Added regularized cost