Added support for batch updates