Changed globalWindow and globalOverlap to consts