Add version locking functionality.