Added function for support filtering of legs