Generation of B and D