Minor re-factoring of backprop.