Added withSocketsDo