Mortgage bank is a bank that specializes in originating and/or servicing mortgage loans. In the United States, a mortgage bank is a state-licensed banking entity that makes mortgage loans directly to consumers. The difference between a mortgage banker and a mortgage broker is that the mortgage banker funds loans with its own capital. Generally, a mortgage bank originates a loan and places it on a pre-established warehouse line of credit until the loan can be sold to an investor, which are typically large institutions. The credit risk is typically absorbed by the Agencies, which include Fannie Mae, or Freddie Mac, and Ginnie Mae. The process of selling a loan from the mortgage bank to another investor is referred to as selling the loan on the secondary market. This is in contrast to the primary market, which for mortgages typically refers to the bank buying the mortgage deed of trust from the homeowner for the face amount of the loan, adjusted for discount points and other price adjustments. Mortgage banks sell the loans because the funds received pay down their warehouse lines of credit which enables the mortgage bank to continue to lend. A mortgage bank is not regulated as a federal or state bank and does not take deposits from consumers or businesses. A mortgage bank raises some equity which it uses to guarantee the warehouse line and the bulk of the funds are provided by the warehouse lender. A mortgage bank can vary in size. Some mortgage banking companies are nationwide. Some may originate a large loan volume, exceeding that of a nationwide commercial bank. Many mortgage banks employ specialty servicers for tasks such as repurchase and fraud discovery work. Their two primary sources of revenue are from loan origination fees, and loan servicing fees (provided they are a loan servicer). Many mortgage bankers are opting not to service the loans they originate. By selling them shortly after they are closed and funded, they are eligible for earning a "service released premium". The secondary market investor that buys the loan will earn revenue for the servicing of the loan for each month the loan is kept by the borrower. Unlike a federally chartered savings bank, a mortgage bank generally specializes only in making mortgage loans. Many do not take deposits from customers, and call themselves Mortgage Lenders, to avoid being confused with a typical bank. A company desiring to