Added autoSync feature. Enables one-time syncing.
Simple tests