Prepared additional algorithm with AP switch cooldown. That helps to
ensure that an AP is powered on for a certain time before it is powered
off again.