Cleanup of this script, works great now.
Merge pull request #396 from blaine-O/master

Cleanup of this script, works great now.