Simplifying the rendering code.