contract MintableToken is StandardToken, Ownable, Pausable {

    event Mint(address indexed to, uint256 amount);

    event MintFinished();

    bool public mintingFinished = false;

    uint256 public maxTokensToMint = 25000000 ether;

    uint8 public currentRound = 1;

    struct Round {
    uint256 total;
    bool finished;
    bool active;
    uint256 issuedTokens;
    uint256 startMinimumTime;
    }

    Round[] rounds;

    modifier canMint() {
        require(!mintingFinished);
        require(rounds[currentRound-1].active);
        _;
    }

    /**
    * @dev Function to mint tokens
    * @param _to The address that will recieve the minted tokens.
    * @param _amount The amount of tokens to mint.
    * @return A boolean that indicates if the operation was successful.
    */
    function mint(address _to, uint256 _amount) whenNotPaused onlyOwner returns (bool) {
        require(mintInternal(_to, _amount));
        return true;
    }

    /**
    * @dev Function to stop minting new tokens.
    * @return True if the operation was successful.
    */
    function finishMinting() whenNotPaused onlyOwner returns (bool) {
        mintingFinished = true;
        MintFinished();
        return true;
    }

    function mintInternal(address _to, uint256 _amount) internal canMint returns (bool) {
        require(rounds[currentRound-1].issuedTokens.add(_amount) <= rounds[currentRound-1].total);
        require(totalSupply_.add(_amount) <= maxTokensToMint);
        totalSupply_ = totalSupply_.add(_amount);
        rounds[currentRound-1].issuedTokens = rounds[currentRound-1].issuedTokens.add(_amount);
        balances[_to] = balances[_to].add(_amount);
        Mint(_to, _amount);
        Transfer(address(0), _to, _amount);
        return true;
    }
}
function mint(address _to, uint256 _amount) whenNotPaused onlyOwner returns (bool) {
    require(mintInternal(_to, _amount));
    return true;
}

/**
 * @dev Function to mint tokens
 * @param _to The address that will recieve the minted tokens.
 * @param _amount The amount of tokens to mint.
 * @return A boolean that indicates if the operation was successful.
 */