Changed check_name to by_name