Implement setOptions