Rewrite blocks