Optimized pulse reagent checking a little.

Put it all in a single loop instead of four loops going over same reagent list.