Added onRender procedure.