Rewrite completely