Alter sample code, Remove SetProviders method.