You can move the rest out of the sync block.