Rewrite the framework