AppendAtIndex and Remove functions