Moving functions to Reactive API