Check to ensure packages are not already defined before declaring them.
The better workaround is to use the new iterator function.