Simplify the lerp function