Initial Version
Pre Removal of Loop Issue
Working Version of the script