Format the output correctly to always show footer