Fixed State and Group Initialization Methods

Both methods now accept the group index, which means we do not need to
consult Context to retrieve it.