Added tcp syncronization