Adding uid and gid attributes.