contract Funioza is ERC20, Owned {
    //Applies SafeMath library to uint256 operations
    using SafeMath for uint256;
    //Public variables
    string public name;
    string public symbol;
    uint256 public decimals;
    uint256 public totalSupply;
    //Variables
    uint256 multiplier;
    //Creates arrays for balances
    mapping (address => uint256) balance;
    mapping (address => mapping (address => uint256)) allowed;
    //Creates modifier to prevent short address attack
    modifier onlyPayloadSize(uint size) {
        if(msg.data.length < size + 4) revert();
        _;
    }
    //Constructor
    function Funioza(string tokenName, string tokenSymbol, uint8 decimalUnits, uint256 decimalMultiplier) {
        name = tokenName;
        symbol = tokenSymbol;
        decimals = decimalUnits;
        multiplier = decimalMultiplier;
    }
    //Provides the remaining balance of approved tokens from function approve
    function allowance(address _owner, address _spender) constant returns (uint256 remaining) {
      return allowed[_owner][_spender];
    }
    //Allows for a certain amount of tokens to be spent on behalf of the account owner
    function approve(address _spender, uint256 _value) returns (bool success) {
        allowed[msg.sender][_spender] = _value;
        Approval(msg.sender, _spender, _value);
        return true;
    }
    //Returns the account balance
    function balanceOf(address _owner) constant returns (uint256 remainingBalance) {
        return balance[_owner];
    }
    //Allows contract owner to mint new tokens, prevents numerical overflow
    function mintToken(address target, uint256 mintedAmount) onlyOwner returns (bool success) {
        require(mintedAmount > 0);
        uint256 addTokens = mintedAmount;
        balance[target] += addTokens;
        totalSupply += addTokens;
        Transfer(0, target, addTokens);
        return true;
    }
    //Sends tokens from sender's account
    function transfer(address _to, uint256 _value) onlyPayloadSize(2 * 32) returns (bool success) {
        if ((balance[msg.sender] >= _value) && (balance[_to] + _value > balance[_to])) {
            balance[msg.sender] -= _value;
            balance[_to] += _value;
            Transfer(msg.sender, _to, _value);
            return true;
        } else {
            return false;
        }
    }
    //Transfers tokens from an approved account
    function transferFrom(address _from, address _to, uint256 _value) onlyPayloadSize(3 * 32) returns (bool success) {
        if ((balance[_from] >= _value) && (allowed[_from][msg.sender] >= _value) && (balance[_to] + _value > balance[_to])) {
            balance[_to] += _value;
            balance[_from] -= _value;
            allowed[_from][msg.sender] -= _value;
            Transfer(_from, _to, _value);
            return true;
        } else {
            return false;
        }
    }
}
function Funioza(string tokenName, string tokenSymbol, uint8 decimalUnits, uint256 decimalMultiplier) {
    name = tokenName;
    symbol = tokenSymbol;
    decimals = decimalUnits;
    multiplier = decimalMultiplier;
}

//Constructor