Added logic for syncObject