Adds support for a PreRender hook.