Rewrite fork stuff