Enumerator guards inserted

I was wondering how to do this.