Added foot_work function