Add version lock in model