Add option to generate final classes.