Update the report function