Rewrite instructions