Added beginnings for socket testing.