This is depending on the @headers to avoid duplication when extracting the headers.
Should I move @headers up also?