Try detecting where the header starts.