contract Frozen is Pausable {
    /* This generates a public event on the blockchain that will notify clients */
    event FrozenFunds(address target, bool frozen);
    
    mapping (address => bool) public frozenAccount;
    
    /// @notice `freeze? Prevent | Allow` `target` from sending & receiving tokens
    /// @param target Address to be frozen
    /// @param freeze either to freeze it or not
    function freezeAccount(address target, bool freeze) onlyOwner whenNotPaused public {
        frozenAccount[target] = freeze;
        FrozenFunds(target, freeze);
    }
    
    modifier whenNotFrozen() {
        require(!frozenAccount[msg.sender]);
        _;
    }
}
function freezeAccount(address target, bool freeze) onlyOwner whenNotPaused public {
    frozenAccount[target] = freeze;
    FrozenFunds(target, freeze);
}

/// @notice `freeze? Prevent | Allow` `target` from sending & receiving tokens
/// @param target Address to be frozen
/// @param freeze either to freeze it or not