Used spawn instead of exec