Add limit for number of statement in batch