Add new_s_group/1 function & state recording