Added explicit dependency on leg