Improvements to example script.