Added code to complete "Record Direct Statistics" and "Record PD
Statistics"