Wouldn't the 20 vs 30 setting be related to $looptime as opposed to the slider ?