         service = labels['bigboat.service.name']
         updateDoc["services.#{service}.aux.#{type}"] = auxUpdateDoc
         Instances.update {name: name}, $set: updateDoc
-        console.log 'updateServiceState::update'
 
   #
   # Updates the internal state based on image pulls

        updateDoc["services.#{service}.properties"] = properties
        updateDoc.status = "Starting #{service}" if mappedState is 'starting'
        updateDoc.status = "Stopping #{service}" if mappedState is 'stopping'
        console.log 'updateServiceState::upsert'
        Instances.upsert {name: name}, $set: updateDoc
      else
        updateDoc = name: name

      status: 'Created'

Instances.find({state: 'removed', desiredState: 'stopped'}, fields: {_id: 1}).observe
  added: (doc, olddoc) -> Instances.remove doc._id

Instances.find({desiredState: 'running'}, fields: {services: 1}).observe
  changed: (doc, oldDoc) -> determineState doc, runningIsDesired
