Add cooling support and restructuring the mode settings.