Added support for handling multiple elements

Included the production example that showed this bug
Production Example now works