Updating to include createObservableFunction