Fixed bug - simulatePatternFullPattern and extractSimulationPattern were
not thread safe