Some refactoring and the addition of a stage for adding compounds as the results of reactions.