Added accepted_name function.