Merge "Implementation of batch scan."