Fees can be capped by offering a settlement. The court will not allow you to ignore a reasonable settlement and then charge fees for work done after. “Reasonable” is defined by a better or similar outcome to what you got in the end by continuing litigation.