Add function to spawn remote processes