Refactor the method to generate the FileName