Initial sync function implementation