Made the HeaderFooterAdvice more efficient and altered the Controller a
bit.