Reorganized header printing routine.