New toggleAuto function