Added parent index to variable