Use self.out instead of print