             log("SUCCESSFULLY INITIALIZED; now RUNNING")
 
 main()
-
-# For debugging/dev
-exports.main = main
-exports.connect_to_rethinkdb = connect_to_rethinkdb
-exports.init_kubectl_watch = init_kubectl_watch
-exports.init_projects_changefeed = init_projects_changefeed
-exports.projects = projects
-exports.get_all_storage_servers = get_all_storage_servers
                process(line)

        r.on 'exit', (code) ->
            throw "kubectl terminated -- #{code}"

        r.on 'error', (err) ->
            throw "kubectl subprocess error -- #{err}"

        cb?()


                    if z[field] != x.new_val[field]
                        z[field] = x.new_val[field]
                        changed[field] = true
                if state == 'ready' and z['run'] and not changed.run and (changed.resources or changed.preemptible or changed.disk_size or changed.storage_ready)
                    # Currently running with no change to run state.
                    # Something changed which can be done via editing the deployment using kubectl
                    kubectl_update_project(project_id)
