Working filter 0, 1 and 2
Implemented filter 3 and 4 but sill testing and bug finding