Added support for socket status handling.
Added support for don't care terms.
Changed naming convention.