Will this work the way I want it to? `sync.syncId` won't exist until line 22 finishes it's work - at which point it's already got a reference to this function. 

*thinks it will work*