```\nfunction _queueLockUpdate(\n    address _owner,\n    uint256 _lockId,\n    uint256 _amount,\n    uint64 _lockingDuration\n) internal onlyLockOwner(_lockId, _owner) {\n    Lock memory lock = _getQueuedLockState(_lockId);\n    LockUpdate memory lockUpdate = LockUpdate(updateBatchIndex, _updateLock(lock, _amount, _lockingDuration));\n    queuedLockUpdates[_lockId].push(lockUpdate);\n    queuedRESDLSupplyChange +=\n        int256(lockUpdate.lock.amount + lockUpdate.lock.boostAmount) -\n        int256(lock.amount + lock.boostAmount);\n    // rest of code\n}\n```\n