Add uid/gid lookup code