Added spire logic and modified leg detection to use time gaps only and filter on bbid.