Used a static reference for WINDOW_SIZE