```\nfunction updateMaxTxnAmount(uint256 newNum) external onlyOwner {\n    require(newNum >= (totalSupply() * 5 / 1000)/1e18, "Cannot set maxTransactionAmount lower than 0.5%");\n    maxTransactionAmount = newNum * (10**18);\n}\n```\n