Making sure that re-runs of code should not have an adverse effect