State machine added for group memebership