Fixes to example scripts.