Starting to add TCP code