Added missing function changeLegs