Made parseHeaders public