; and (2) an internship program under subsection (e). (d) Selection (1) In general Each fiscal year, subject to the availability of funds, the Secretary shall select at least 30 eligible students to participate in the fellowship program for a period of 2 years. (2) Students from minority-serving institutions and historically Black colleges and universities The Secretary may not award fewer than 50 percent of the fellowships under this section to eligible students who attend historically Black colleges and universities and other minority-serving institutions, including Hispanic-serving institutions, Asian American and Native American Pacific Islander-serving institutions, American Indian Tribally controlled colleges and universities, Alaska Native and Native Hawaiian-serving institutions, Predominantly Black Institutions, and Native American-serving, Nontribal institutions. (3) Scholarship Each fellow shall receive a scholarship of up to $50,000 each academic year of the fellowship program. (4) Consideration of underrepresented students in STEAM fields In awarding a scholarship under this section, the Secretary shall consider— (A) the number and distribution of minority and female students nationally in science and engineering majors; (B) the projected need for highly trained individuals in all fields of science and engineering; (C) the present and projected need for highly trained individuals in science and engineering career fields in which minorities and women are underrepresented; and (D) the lack of minorities and women in national security, especially in science and engineering fields in which such individuals are traditionally underrepresented. (5) Student agreement As a condition of receipt of funds under this section, a fellow shall agree— (A) to use such funds solely to pay the cost of attendance at the higher education institution at which the student is enrolled; (B) to return any such funds in excess of the cost of attendance at such higher education institution