Adding var to runsimulation