Added a method to improve header size updates.