Add Switch refresh method.
(cherry picked from commit b9ff9a5)