Group synchronization sample, advanced version.