Extract headers