Updated to check for uid 0