Moved the Renderer to its own class.