Rewrite from exec to spawn