Some code for Group report. Not finished.