Modified in order to use self.print method