* Put the script code into a main() function
* Only execute the main() function if we're not sourcing from a test script