Created separate updateAll method.