Store index in id node instead of sting.
The code is slightly faster