Uses rest instead of slice.