Updated script and example.