Added changed function to sync