Added sync every time a stat is set