Updated drd.cpp