Modified the reaction func and added the RNG file