Oh... can't use curthread in static contexts.