Added TCP flags and UDP fucntionality.