End script select