Added grads, alterations to CAS