Function createGlobalOptions