Changing exec to spawn