Uses spawn instead of exec (fix #1)