Move initialization of htype