Write location header first.