Local Sync Function created