Finalized static and swing leg codes