Small improvements to the sample script.