Add option to specify which parts of header processing should be done