Add conditionals for classes.