Sample code

These scripts were provided as sample code to customers which I have made generic for broader use.