Implementing new Switch Setting Function