Using absolute index to prevent out of bounds array access.