Changing the interface to wrap the rendering function