Use singleton reactor instance in functions