Changed sin and cos.