The Senate on Tuesday confirmed Trump nominee and White House deputy chief of staff KirstjenĀ Nielsen to lead the Department of Homeland Security.

Nielsen was confirmed by a 62-37 vote the Associated Press reported.

For the first six months of the Trump administration, Nielsen served as chief of staff to then Department of Homeland Security Secretary John Kelly, a fact many Republican senators used to endorse her nomination.

Senate Homeland Security Chairman Ron Johnson (R., Wisc.) said Nielsen “is ready to answer this call to duty. She has been working in and around the Department of Homeland Security since its creation.”

An attorney and cybersecurity expert, Nielsen will be the first DHS secretary with previous experience working at the agency, according to the Washington Post.

Some Democrats, on the other hand, complained Nielsen lacks the experience needed to run a major agency, and cited concerns over Trump administration policy.