Add .on and .off implementations.