Isolate example script for shared usage