PDHO script should now work properly