Add turn on/off function.