Add negative index values support