Caregiving may be linked to better cognitive function in grandparents who provide care for their grandchildren.