Some modification of get_name. #2.