Fix to use setOptions() syntax