Add array access in addition to appending.