Redone the weight update derivations.