[CH2:1]([O:3][C:4]([N:6]([CH2:16][C:17]([OH:19])=O)[CH:7]([CH2:10][C:11]1[S:12][CH:13]=[CH:14][CH:15]=1)[CH2:8][CH3:9])=[O:5])[CH3:2].CN(C=O)C.C(Cl)(=O)C(Cl)=O.[Al+3].[Cl-].[Cl-].[Cl-]>C(Cl)Cl>[CH2:8]([CH:7]1[CH2:10][C:11]2[S:12][CH:13]=[CH:14][C:15]=2[C:17](=[O:19])[CH2:16][N:6]1[C:4]([O:3][CH2:1][CH3:2])=[O:5])[CH3:9]To a solution of Compound 1036 (2.25 g, 7.885 mmol) in DCM (35 mL) was added 0.1 mL of DMF followed by addition of oxalyl chloride (1.502 g, 1.032 mL, 11.83 mmol). The reaction mixture was stirred at RT for 1 hour and the volatiles were removed in vacuo. The residue was taken up in benzene and the volatiles were again removed in vacuo (2×), followed by drying under vacuum. The residue was taken up in dry DCM (35 mL) and AlCl3 (3.679 g, 27.59 mmol) was added at RT. The mixture was stirred at RT for 1.5 hours and the reaction quenched with ethanol. The resulting solution was poured into ice water and extracted with DCM (2×). The combined organic layers were dried over Na2SO4, concentrated under vacuum, and the residue purified by silica gel chromatography, using a 5%-20% ethyl acetate/hexanes gradient as eluant, to produce ethyl 7-ethyl-4-oxo-7,8-dihydro-4H-thieno[2,3-d]azepine-6(5H)-carboxylate (Compound 1037, 671 mg).