PDC script overhaul