Have had same scenario with early e-class petrol after battery change turned out to be MAF after a lot of messing around took a while to convince customer about the ecu resetting when battery was disconnected his quote was 'it was ok when i brought it in '!!! .He DID pay for new maf. Hope this helps. John