def METHOD_NAME():
    daemon=Pyro.core.Daemon()
    daemon.useNameServer(ns)
    dup = DupManager()
    daemon.connect(dup,dup.name)
    #start a new thread to handle remote access to our duplicator    
    t = threading.Thread(target=_requestLoop, args=(daemon,))
    t.start()
    try:    
        while keepAlive:
            #delay for a semi-random ammount of time
            time.sleep(DELAY_S + np.random.rand()*DELAY_S)
            #attempt to duplicate
            dup.attempt_dup()
    finally:
        stopDuplicator()