Rewrite IO engine.