Threshold filter almost finished, yay