```\nfunction updateAddressesAndTransferOwnership(\n    address mintingBeneficiary,\n    address alarmContract,\n    address rngContract,\n    address minter,\n    address _owner\n) external onlyOwner {\n    changeMintBeneficiary(mintingBeneficiary);\n    changeMinter(minter);\n\n    setAlarmAccount(alarmContract);\n    setVRFAccount(rngContract);\n\n    transferOwnership(_owner);\n}\n```\n