Added TCP and UDP methods