Initial commit

A basic working version of this script. Modify for your own use.