Added option to add both top and bottom headers