Started adding basic socket functionality