Code related to D4D