Added a condition() method to FilterBase, allowing the filter to accept arbitrary conditions from outside code.