Tweaks to CAE. Something screwy with gradients
tweaks