Made the look-up thread safe.