In principle, the payroll function should be divided into its Authorization, Recording, and Custody functions. Authorization of hiring, wage rates, and deductions is provided by personnel. Authorization of hours worked (executed by employees) is provided by production. Based on these authorizations, accounting calculates and records the payroll. Based on the calculated amounts, the treasurer prepares and distributes payroll checks.