Reorganized controller structure and made groups work.
Fixed calculation of overall status.