Prett much copied over Rourke's temporary fix for /ctgs over to /ctstats.