Added ability to indicate if header exists to import functions