Set spawn implementation