Which of the following appendages plays a direct role in exchanging genetic materials between bacterial cells?

A) Flagellum
B) Pilus
C) Capsule
D) Fimbria