Simulation won't fully run pair searching

See here: Simulation won’t fully run pair searching - #2 by hess