Added a method to directly set the IsOn boolean property directly