Department of Homeland Security Secretary Kirstjen Nielsen is expected to keep her job — following weeks of speculation — after publicizing her stronger stance on immigration in recent weeks, Politico reported.

A source close to Nielsen told Politico that her efforts at the U.S.-Mexico border against the caravan and her use of social media to prop up the President have bought her time. On Facebook, Nielsen posted lengthy statements in support of President Trump’s decision to send troops to the border and use tear gas on approaching migrants from the highly politicized caravan.

In a statement posted on Facebook following backlash over the tear gas usage, Nielsen took a page from Trump’s book, blasting the caravan organizers for using women and children as “human shields.”

“Instead of ‘a political stunt,’ as suggested by some, this was in fact the act of a leader concerned about the rule of law,” she said of Trump on Facebook.

Five people close to the administration told Politico that Nielsen has impressed Trump, who was considering nixing her in recent weeks because she wasn’t strong enough on immigration.