Added some echos to the pd.php script for debugging.