Federal Emergency Management Agency Administrator Brock Long used government-owned vehicles without proper authorization, but will reimburse the government and not be fired, Homeland Security Secretary Kirstjen Nielsen said in a statement late Friday.

The statement ends days of speculation over whether the FEMA chief would be ousted.

Just as the agency's response to Hurricane Florence got under way, reports surfaced that the administrator was under investigation by the Department of Homeland Security's inspector general. Those findings were delivered to Congress late Friday, but not released publicly.

President Donald Trump shakes hands with FEMA Administrator Brock Long after visiting areas in North Carolina and South Carolina impacted by Hurricane Florence, Wednesday, Sept. 19, 2018, at Myrtle Beach International Airport in Myrtle Beach, S.C.(AP) President Donald Trump shakes hands with FEMA Administrator Brock Long after visiting areas in North Carolina and South Carolina impacted by Hurricane Florence, Wednesday, Sept. 19, 2018, at Myrtle Beach International Airport in Myrtle Beach, S.C.

At issue was Long's use of government vehicles to commute home to his family in Hickory, North Carolina.

According to Nielsen's statement, use of government vehicles was "established practice" by FEMA administrators for "more than a decade to ensure senior leader connectivity in times of crisis."

But this practice posed a problem for Nielsen because Long would use the vehicles to commute home to his family in Hickory, at least a six-hour drive from the nation's capital.

"Despite this established practice, use of government vehicles to provide home to work transportation for the FEMA Administrator was never authorized in accordance with applicable law," Nielsen wrote.

She added that she takes "seriously" the "unauthorized or inappropriate use of government resources" and has discussed "next steps" with Long.

In this Oct. 31, 2017 file photo, Federal Emergency Management Agency Administrator Brock Long testifies before the Senate Governmental Affairs Committee on Capitol Hill in Washington, during a hearing on the federal response to the 2017 hurricane season(AP) In this Oct. 31, 2017 file photo, Federal Emergency Management Agency Administrator Brock Long testifies before the Senate Governmental Affairs Committee on Capitol Hill in Washington, during a hearing on the federal response to the 2017 hurricane season

"We had a productive conversation where we discussed my expectations regarding the agency’s use of government vehicles going forward," she said. "The administrator acknowledged that mistakes were made, and he took personal responsibility."

In a statement attached to Nielsen's comments, Long said, "As the leader of this agency, I accept full responsibility for any mistakes that were made by me or the agency. The secretary and I are taking corrective action to prevent such mistakes from happening in the future."

Long's job security was in jeopardy even as Hurricane Florence approached North Carolina, The Wall Street Journal reported last week Separately, the Washington Post reported Thursday that Long considered stepping down over the scandal and sparring with Nielsen, who decided to visit North Carolina without telling Long.

Long bumbled his response to a question about FEMA's preparedness for Florence at a press conference before the storm, calling the storm by the incorrect name: "I am 100 percent focused on Floyd at this moment."

"I would never intentionally run a program incorrectly," Long said at the press conference. "Bottom line is, if we made mistakes on the way a program was run, then we'll work with the OIG to get those corrected."