Added stuff to createGroup()