Cleaned up the example script a bit.