Andy's general queue submission script