Corrected HDI scripts