Simplify position calculation.