Updated the renderer class to reflect recent api changes