Add basic socket funcitonality