Add setOptions API reference