Update onoff example