Added run-simulation function