Move country and global stats sync outside of loop closes #629