Added head & footer support