Handle the main group