Added additional comment on getHeader function