Changed Filter interface.

Add context parameter for Filter.