Set id and version number.