function withdrawFunds(address beneficiary, uint withdrawAmount) external onlyOwner {
        require (withdrawAmount <= _token.balanceOf(address(this)), "Cannot withdraw more than balance.");
        require (jackpotSize + lockedInBets + withdrawAmount <= _token.balanceOf(address(this)), "Not enough funds.");
        sendFunds(beneficiary, withdrawAmount, withdrawAmount);
    }