Code from the orbdb reaction predictor.