Added stoichiometry code