Does this class is suposed to be thread safe ?