Well, if it was the airflow sensor, why is it running okay now? What fault codes are there stored in the engine management system? Have you checked for loose connections around the engine compartment? Is the EGR valve clean? Are there any fault codes relating to fuel pressure, either pre-delivery or main?