Rewrite command