Sorting fluxes correctly. Better management of new reaction input.