Fix to use setOptions() syntax

This allows the provider to use the new setOptions() syntax, as opposed to passing the options in via the constructor, which is no longer supported.