passing store.queuesize-1 to make space in queue.changed name of property from batch_size to queuesize.