Apparently you cannot issue a return statement in a provider :(