In response to attacks by Barbary Pirates in the Mediterranean the new Federal Congress passed legislation in 1794 to build a small Navy, and then as part of responding to French Privateer attacks on U.S. Merchant Marine shipping during the Quasi-War of 1798–1800 Congress passed a bill in 1798 for the establishment of doctors and marine hospitals at port cities to care for merchant sailors. This Merchant Marine doctor & hospital service eventually evolved into the U.S. Public Health Service. The following year, 2 March 1799, an act of Congress authorized U. S. Navy Seamen admission to the Merchant Marine hospitals. Twenty cents per month was deducted from the Seamen's pay and paid to what was then the "Naval Hospital Fund" for the purpose of medical care and hospitals for U.S. Naval personnel. In addition, all proceeds from fines or forfeitures charged misbehaving sailors and officers were added to the Naval Hospital Fund. Today, all active duty personnel contribute Fifty cents a month to the "Armed Forces Retirement Home Trust Fund," and fines and forfeitures are still deposited to the Trust Fund.