added some initial code to filter on bars.