Moved the sum division into the derivation function, all except Elliot.