Added withSocketsDo.