def new_instance(self, length):
        """Generates a unique instance ID, one which is currently not in use."""
        while True:
            rand = "".join([random.choice(string.ascii_letters + string.digits) for _ in range(length)])

            if rand not in self._instances:
                self._instances.append(rand)
                return rand