Using self.loop
Adding prefix support