Added the rendering thread