Handle position updates. Fixes #7.