Complete rewrite of The Render Engine