function automaticWithdrawLoop(uint startIndex, uint endIndex) {
        
        if (!finalized) throw;
        
        
        for (uint i=startIndex; i<=endIndex && i<memberCount; i++) {
            
            if (accountIndex[i] == 0)
                continue;
            
            tokenReward.transfer(accountIndex[i], (balanceOf[accountIndex[i]] * tokenSupply / amountRaised));
            
            TokenAllocation(accountIndex[i], (balanceOf[accountIndex[i]] * tokenSupply / amountRaised));
            
            balanceOf[accountIndex[i]] = 0;
        }
    }