Some changes so specfitMC could run better in parallel.