Added to hprinter example.