See the example script.