Makes some adjustments for socket implementation.