Define global reference to triggerSync Function