Re-implemented filter memory.

Closes #216.