Move optionsProvider into setTimeout

This moves the `optionsProvider` call into the `setTimeout` as discussed in #70