; and (C) may not exceed the greater of $20,000 or 10 percent of the purchase price in the case of a qualified homebuyer, not to include assistance received under subsection (d)(1)(C) for disability related home modifications, except that the Secretary may increase such maximum limitation amounts for qualified homebuyers who are economically disadvantaged. (3) Prohibition of priority or recoupment of funds In selecting qualified homebuyers for assistance with grant amounts under this section, a State or eligible entity may not provide any priority or preference for homebuyers who are acquiring eligible homes with a mortgage loan made, insured, guaranteed, or otherwise assisted by the State housing finance agency for the State, any other housing agency of the State, or an eligible entity when applicable, nor may the State or eligible entity seek to recoup any funds associated with the provision of downpayment assistance to the qualified homebuyer, whether through premium pricing or otherwise, except as provided in paragraph (4) of this subsection or otherwise authorized by the Secretary. (4) Repayment of assistance (A) Requirement The Secretary shall require that, if a homebuyer to or on behalf of whom assistance is provided from grant amounts under this section fails or ceases to occupy the property acquired using such assistance as the primary residence of the homebuyer, except in the case of assistance provided in connection with the purchase of a principal residence through a shared equity homeownership program, the homebuyer shall repay to the State or eligible entity, as applicable, in a proportional amount of the assistance the homebuyer receives based on the number of years they have occupied the eligible home up to 5 years, except that no assistance shall be repaid if the qualified homebuyer occupies the eligible home as a primary residence for 5 years or more. (B) Limitation Notwithstanding subparagraph (A), a homebuyer to or on behalf of whom assistance is provided from grant amounts under this section