Controlling the cooling cycle