Added multiple header and footer ability