Created printer function and program query output structure.