After replacing two O2 sensors, sparkplugs, fuel pressure regulator, and a coil pack on my 1994 540i to cure a rough idle and black exhaust smoke, I finally learned about an oil separator assembly located on the back of the engine's intake manifold. Replacing the assembly cured the problem.