Removed restriction of outputs to one generated file (to support multiple headers)