This function should be idempotent.  Did it cause any errors running it multiple times?