Changed the API for rendering a little bit.