Add self.instances support