Replaced generate_name with generate_string