GenerateFileName method added