Add code to read header.