Added ability to insert a header if none found.