added some more parameters to Simulation function