Added on/off functionality.