Adding previousPosition.