System rewrite