Added apply function.
Added ProviderBase.