Removed unused code from demo scripts.