Rewrite online mode