Updated with version information, and specified assumptions about how script would be loaded and run.