Fixed position of setOptions function