Clean mode class.