Added leg filtering
Various changes present in the office.