Added support of two limits; added update of widget on save settings.