Added average reporting to the record.c