Added option to add extra header with background requests