Restore add_observer method.