ANNAPOLIS, Md. (AP) — Acting Defense Secretary Patrick Shanahan says the new graduates of the U.S. Naval Academy should change the status quo and “set the standard on preventing sexual harassment and assault” among ranks.

The former Boeing executive delivered the commencement address Friday at the school in Annapolis. He also told graduates they should not be afraid of failure.

READ MORE: Maryland Weather: We Could See Some Snow On Friday

More than 1,000 midshipmen are graduating. Most will be commissioned as either Navy ensigns or second lieutenants in the Marines.

Shanahan served as the Pentagon’s No. 2 official since July 2017 until he was appointed the acting secretary in January. He took over after former Secretary of Defense Jim Mattis resigned in December over policy differences with President Donald Trump.

READ MORE: Baltimore County Detectives Investigate Pikesville Man's Shooting Death

Mattis will be recognized during the ceremony as an honorary member of the class.

Swipe to see more photos from graduation:

MORE NEWS: Baltimore Firefighter John McMaster Upgraded To Fair Condition After Building Collapse

(© Copyright 2019 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)