Add DnD function.