HQ script minor corrections