Added interval checking for socket object