Rewrite scheduler