Dust adjustment code and scripts