Added localization code for On and Off