Add loadGroup function