Adapt version for gem