Pass ID to group-header.php?

Hello,

In buddypress, I have added the following to the very top of /wp-content/themes/mytheme/groups/single/group-header.php:

echo "The ID of the current group is: " . $bp->groups->current_group->id;

echo "The name of the current group is: " . $bp->groups->current_group->name;

This successfully outputs the ID and name of the current group like so:

The ID of the current group is: 1
The name of the current group is: Fun Group

So I add the following new line above the other two:

$bp->groups->current_group->id ='5';

This results in the following:

The ID of the current group is: 5
The name of the current group is: Fun Group

So the ID successfully updates, but not the name of the current group.

My question is that how can I pass an ID to the page to call a specific group?

What does Buddypress pass to the group-header.php page in order to display the correct group?

Thanks!