Moved translation to the curve function.