Remove unnecessary updatePosition variable.