Rewrite APPEND blocks