; and (3) to implement and model best practices for ballot design, ballot instructions, and the testing of ballots. (b) Amount of grant The amount of a grant made to a State under this section shall be such amount as the Commission determines to be appropriate, except that such amount may not be less than the product of $1 and the average of the number of individuals who cast votes in any of the two most recent regularly scheduled general elections for Federal office held in the State. (c) Pro rata reductions If the amount of funds appropriated for grants under this part is insufficient to ensure that each State receives the amount of the grant calculated under subsection (b), the Commission shall make such pro rata reductions in such amounts as may be necessary to ensure that the entire amount appropriated under this part is distributed to the States. (d) Surplus appropriations If the amount of funds appropriated for grants authorized under section 298D(a)(2) exceed the amount necessary to meet the requirements of subsection (b), the Commission shall consider the following in making a determination to award remaining funds to a State: (1) The record of the State in carrying out the following with respect to the administration of elections for Federal office: (A) Providing voting machines that are less than 10 years old. (B) Implementing strong chain of custody procedures for the physical security of voting equipment and paper records at all stages of the process. (C) Conducting pre-election testing on every voting machine and ensuring that paper ballots are available wherever electronic machines are used. (D) Maintaining offline backups of voter registration lists. (E) Providing a secure voter registration database that logs requests submitted to the database. (F) Publishing and enforcing a policy detailing use limitations and security safeguards to protect the personal information of voters in the voter registration process. (G) Providing secure processes and procedures for reporting vote tallies. (H) Providing