Add cosine interpolation