Implemented beginnings of group record management in the castflow module.