You are a chemist. Please follow the instructions to convert the structure to the corresponding name.
system
Name the molecular formula for the molecule established as ethyl 2-[[2-(4-chloro-2-methylphenoxy)acetyl]amino]-6-methyl-4,5,6,7-tetrahydro-1-benzothiophene-3-carboxylate using the IUPAC nomenclature.
user
C21H24ClNO4S
assistant