Use spawn instead of exec