Added setHeaders method