Trying to get DirectGradDesc working again.