Adding actual R functions necessary for the report generation - forgot in
initial commit