More reliable version setting.