Removed unused socket variable