Using exponential instead of cosine as the function doesn't exist anymore