Added invalid header support.