Minor cleanup in rep script.