Rewrite output