Added code for Analysis_group