Using setProvider to register outputs