Implemented batching for sequence id mapping