Leaking global variables again here and below.