Wrapping up the rendering logic.