Slightly simplified reportcontroller.