Updating socket behaviour