Not sure how to make sure that all bytes of header can be read.