Added sync function to give UI indicator of saves.