Added Graeme's version of runRecs.cpp