You know, I was having the same problem - I don't have a B18, but my D16 was rattling at exactly 3000 rpm. Sounded like it was the exhaust manifold. I tried checking teh heat shield too but no luck. Turns out a rock had bumped the resonator and something was loose inside it. Maybe check that?