Implement early header checking