Former President George H.W. Bush has been moved from the intensive care unit at a hospital in Houston into a regular room.

Bush was admitted to Houston Methodist Hospital with an infection, just after attending the funeral of his wife, Barbara, a spokesman said.

On Wednesday, Bush spokesman Jim McGrath said on Twitter that Bush "is expected to continue his recovery there for several more days. He is alert and talking with hospital staff, family and friends, and his doctors are very pleased with his progress."

Barbara Bush was laid to rest Saturday in a ceremony attended by her husband and former presidents Bill Clinton, Barack Obama, George W. Bush and their wives, along with current first lady Melania Trump. Mrs. Bush was 92, and she and her husband had been married 73 years — the longest presidential marriage in U.S. history.

George H.W. Bush uses a wheelchair and an electric scooter for mobility after developing a form of Parkinson's disease, and he has needed hospital treatment several times in recent years for respiratory problems.

He attended the funeral wearing a pair of knitted socks decorated in blue, red and yellow books — a tribute to his late wife's work promoting literacy.

McGrath wouldn't elaborate Monday night on the specifics of Bush's condition, saying additional updates would be issued "as events warrant." But he said the 41st president was eager to get well so he can get to his summer home in Kennebunkport, Maine.

"He's the most goal-oriented person on this planet," McGrath said.

Former Florida Gov. Jeb Bush indicated during his eulogy Saturday that his father had been hospitalized recently at the same time Barbara Bush was in the hospital for the last time. Those hospitalizations were not publicly disclosed at the time.

"I think Dad got sick on purpose so that he could be with her," Jeb Bush said.

First lady Melania Trump tweeted Monday evening that she was sending "healing thoughts of strength, along with prayers, for President George HW Bush tonight."

On Friday, during the public viewing of Barbara Bush's casket, George H.W. Bush offered his hand to many of the around 2,500 people who walked through the church to pay their respects.

A year ago this month, he spent two weeks in the hospital for treatment of pneumonia and chronic bronchitis, a constant irritation of the lining of tubes that carry air to one's lungs. His doctors said chronic bronchitis is a condition more prevalent with age and can aggravate the symptoms of pneumonia.

The elder Bush was hospitalized for 16 days in January 2017 for pneumonia. During that hospital stay, which included time in intensive care, doctors inserted a breathing tube and connected him to a ventilator.

He also was hospitalized in 2015 in Maine after falling at home and breaking a bone in his neck, and in December 2014 for about a week for shortness of breath. He spent Christmas 2012 in intensive care for a bronchitis-related cough and other issues.

People in their 90s with Parkinson's disease are often at higher risk of pneumonia and other infections because their swallowing process can be compromised, said Dr. David Reuben, professor of geriatric medicine at the UCLA medical school in Los Angeles.

"And the stress of losing a loved one can weaken the immune system," he said.

Bacterial infections are treated with antibiotics, he said, while viral infections require other treatments. Infections that spread to the blood usually are not viral, however, he said.

The prognosis for such a case would depend on a number of factors, including heart rate, blood pressure and oxygenation, Reuben said.

"The more of these parameters are abnormal, the more serious the case is," he said.

George Herbert Walker Bush served as president from 1989 to 1993. Born June 12, 1924, in Milton, Massachusetts, Bush also served as a congressman, CIA director and Ronald Reagan's vice president.

Associated Press reporter Terry Wallace contributed to this story.