Adding support for state and tcp flags