Changing the print method.