Added download report function