Working query communication between sync plugin and main plugin