Thermoquad tuning to pass smog

NoX means its lean. Are you running cats? Are you allowed to increase the RPM or do thy stick to spec? What about timing, can you deviate from stock at all?