Remove checking 'bad_ending' argument (be careful do not change it in the 'clean_files' function).