function PrintData made inline.