Tighten header setting and appending