Accept negative number as an index in append