Make some of the util functions more readable
Add support for BatchPutAttributes