Tweak socket calls