modified ArrivalTimeAsync to accept an arrivalIndex