Use np.uint16_t here and below?