Writes header and footer, breaking for sausages