Poor toyota has to cheat in Nascar!!!!Wonder if they'll take the wins away?

What makes it more confusing is that many of the drivers drive in both.

I have two questions:

What are the engine restrictions for NASCAR? I thought the engine had specific mechanical design criteria, I didn’t realize it was horsepower limited as well.

How does a magnet under the gas pedal hide horsepower?