Fixed setOptions signature