Add last_seq to the result from replicate
Merge branch 'replicate_result_last_seq' into myway