I still don't like this variable name as its a looong function and 'w' is everywhere :(

Why set w, not is_gle?