Added synchronizationbw threads