Delete main_with_generate