Added function support to Observable.