Adds ability to pass options via a configuration object.