Updated cosine filter