Using thread-safe methods