Added the render function