Implemented updateFilter function. Testing...