Moved the initializations for corMatchSeed and orgMatchSeed so that they are only called if a match is found