This is required because some threads are created in the constructor, so assigning the name afterwards would be too late.