Updated how name approval functions.