Alternative implementation of readPosition().