Companies also began to create new departments to help manage the changing character of the factories. Production departments such as machining, finishing, and assembling were established. Other departments such as quality control, maintenance, and factory administration were designated as service departments (or production service departments), since these departments served the production departments. The company's costs were contained in the accountant's general ledger, which was organized by departments so as to mirror the organization chart and to provide for budgeting and control. Because some of the production departments used more of some service departments' efforts/costs than others, accountants responded by first allocating the service department costs to the production departments, and then developing manufacturing overhead rates for each of the production departments. These rates were computed by dividing each production department's costs (its own direct costs plus the service departments' costs allocated to it) by its machine hours.