I think you meant for `helpers.GenerateInstanceID( )` to actually be `newInstanceID` on line 52. Otherwise, I'm not sure why you have a `do..while` loop to find a unique ID.