Moved code from htslib.