Added options for starting at a certain index.
merge