Removed unused code from sample script