Trying something else to fix the gradient issue.