First version of drdi.php