Merging some scripts from the forums , first pass
Merge pull request #1 from jtownley/master

Merging some scripts from the forums , first pass