Add mode classes.