Improved get_filename_by_method function