Add head and foot
Fix length