Changed setGlobalsOptions function name to setGlobalOptions