Beginning connect socket functionality