         url = urlParser.format(url) + 'cozy'
         replicator = replicate(url, options)
             .on 'change', onChange
-            #.on 'uptodate', onUptoDate # Called only for a continuous replication
+            .on 'uptodate', onUptoDate # Called only for a continuous replication
             .on 'complete', onComplete # Called only for a single replication
             .on 'error', onError

            if fromRemote and not toRemote
                #log.info 'Applying changes on the filesystem'
                console.log 'Applying changes on the filesystem'
                finish = (err) ->
                    callback err if callback?
                applyChanges finish
            else
                callback null if callback?


            if needTreeRebuild
                #log.info 'Applying changes on the filesystem'
                console.log 'Applying changes on the filesystem'
                applyChanges (err) ->
                    needTreeRebuild = false
                    callback err if callback?

        onComplete = (info) ->
            #log.info 'Replication is complete'
