Added a seed to maintain regularity of simulations.