; (C) in paragraph (2), by striking referred to in paragraph (1) of this subsection and inserting regarding a claim under a law administered by the Secretary ; (D) in paragraph (3)(A), by striking to paragraph (2) and inserting to paragraph (1) or (2) ; and (E) by striking paragraph (4); and (3) by adding at the end the following new subsection: (e) Payment of fees out of an award or increased award (1) When a claimant and an agent or attorney have entered into a fee agreement described in paragraph (2), the total fee payable to the agent or attorney (including all ancillary fees) may not exceed the amount that is equal to the product of five and the amount of the monthly increase of benefits awarded on the basis of the claim. (2) A fee agreement referred to in paragraph (1) is one under which the total amount of the fee payable to the agent or attorney— (A) is to be paid to the agent or attorney by the claimant, after commencement of the monthly period of payment of monetary benefits based on an award or increased award (as defined in section 5111(d) of this title); and (B) is contingent on whether the matter is resolved in a manner favorable to the claimant. (3) For the purposes of this subsection, a claim shall be considered to have been resolved in a manner favorable to the claimant if all or any part of the relief sought is granted. . (b) Regulations Not later than 180 days after the date of the enactment of this Act, the Secretary shall prescribe regulations to carry out the amendments made by this section. 5. Reinstatement of penalties for charging veterans unauthorized fees relating to claims under laws administered by the Secretary of Veterans Affairs (a) In general Section 5905 of title 38, United States Code, is amended— (1) in the section heading, by striking Penalty and inserting Penalties ; (2) by striking Whoever and inserting the following: (a) Withholding of benefits Whoever