Added functionlity to sync smart groups