Added getHeader function