Questionable but functioning implementation of multiple filters