Added a callback to the render method

Have added a callback to the render plugin's method.