     .action runSync
 
 program
+    .command('watch <devicename>')
+    .description('Watch changes on FS')
+    .action watchChanges
+
+program
     .command('display-config')
     .description('Display device configuration and exit')
     .action displayConfig


    db.db.query { map: map }, (err, res) ->
        for doc in res.rows
            if doc.value.docType is 'Folder'
                # Create folder
                mkdirp.sync remoteConfig.path + doc.value.path + '/' + doc.value.name
            else
                # Create parent folder and touch file
                mkdirp.sync remoteConfig.path + doc.value.path + '/'
                touch remoteConfig.path + doc.value.path + '/' + doc.value.name


fetchBinaries = (devicename) ->

fs = require 'fs'
path = require 'path'
request = require 'request-json'
PouchDB = require 'pouchdb'
mkdirp = require 'mkdirp'
