Make Statistics thread safe