Replaced Functions with the ones from provider model.