Added getHeaderFields method