Made Renderer more thread safe.