Used uint8 dataType for mask in case of apparent agreement.