Implements prototype version of runSimulation SP.