Updated HT code