Tiny teeth on hiplike structures keep legs in sync