Added postRenderScript hook