Made sure the lazy implementation is thread safe.