Set return in setOptions function