Added filter to allow for complex, codified filtering.