Can now read headers from the reference file