Writing main report