Rewrite PA capture plugin