Function getScopeOptions