Add basic callback functionality to pre-filter results