Getting rid of duplicate code throughout the four calls.
Added additional documentation for user/group pairs.