Checkpoint: filter code is written; haven't tried compiling it yet.