Simplified the get_group method a bit.