Create initial simulation function