Added hiding and showing groups.