```\nfunction processAccount(address payable account, bool automatic) public onlyOwner\n    returns (bool)\n{\n    if (dividendsPaused) {\n        return false;\n    }\n\n    bool reinvest = autoReinvest[account];\n\n    if (automatic && reinvest && !allowAutoReinvest) {\n        return false;\n    }\n\n    uint256 amount = reinvest\n        ? _reinvestDividendOfUser(account)\n        : _withdrawDividendOfUser(account);\n\n    if (amount > 0) {\n        lastClaimTimes[account] = block.timestamp;\n        if (reinvest) {\n            emit DividendReinvested(account, amount, automatic);\n        } \n        else {\n            emit Claim(account, amount, automatic);\n        }\n        return true;\n    }\n\n    return false;\n}\n```\n