Add support for classes.